package com.zjzywl.smoke.authenticate;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import com.zjzywl.smoke.entity.SysUser;

public class AuthUser extends User {
	private static final long serialVersionUID = 1L;
	private SysUser people;

	public AuthUser(SysUser people, Collection<? extends GrantedAuthority> authorities) {
		super(people.getLoginName(), people.getPassword(), authorities);
		this.people = people;
	}

	public SysUser getPeople() {
		return people;
	}

	public void setPeople(SysUser people) {
		this.people = people;
	}
}
